package OrdersSystem;


/**
 * 
 * This class is used by the Deliveries System in order to communicate. 
 * with Orders System and send an User alert about an order.
 * 
 * @author iSolutions-Team Orders
 *
 */
public class OrdersComm {
	
	/**
	 * This method is used in order to send the alert.
	 * It just prints the specific alert Details, instead of sending them to the user.
	 * 
	 * @param alertID the number which uniquely identifies the location of the alert in the database. 
	 * 
	 */
	public String sendAlert(int alertID) { // Normally return type is void. Changed to String for testi
		UserAlert alert = new UserAlert(alertID);
		String result = alert.forwardUserAlert();
		//System.out.println(result);
		return result;
	}

}
